package com.hifar.test.test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hifar.test.entrust.pojo.HfEnvGkProject;
import com.hifar.test.test.mapper.HfEnvTaskTestRelationMapper;
import com.hifar.test.test.pojo.HfEnvTaskTestRelation;
import com.hifar.test.test.service.IHfEnvTaskTestRelationService;
import org.springframework.stereotype.Service;

/**
 * @author zhuWeiWei
 * @description 试验任务关系
 * @date 2025/5/29 9:31
 */
@Service
public class HfEnvTaskTestRelationServiceImpl extends ServiceImpl<HfEnvTaskTestRelationMapper, HfEnvTaskTestRelation>
        implements IHfEnvTaskTestRelationService {

    @Override
    public void updateEntrustId(String gkEntrustId, String entrustId) {
        this.lambdaUpdate()
                .set(HfEnvTaskTestRelation::getEntrustId, entrustId)
                .eq(HfEnvTaskTestRelation::getGkEntrustId, gkEntrustId)
                .update();
    }
}
